gusucode.com > DirTree 树形菜单资源管理器-源码程序 > DirTree 树形菜单资源管理器/DirTree/DirTreeDoc.cpp
// DirTreeDoc.cpp : implementation of the CDirTreeDoc class // #include "stdafx.h" #include "DirTree.h" #include "DirTreeDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDirTreeDoc IMPLEMENT_DYNCREATE(CDirTreeDoc, CDocument) BEGIN_MESSAGE_MAP(CDirTreeDoc, CDocument) //{{AFX_MSG_MAP(CDirTreeDoc) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDirTreeDoc construction/destruction CDirTreeDoc::CDirTreeDoc() { // TODO: add one-time construction code here } CDirTreeDoc::~CDirTreeDoc() { } BOOL CDirTreeDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CDirTreeDoc serialization void CDirTreeDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here } } ///////////////////////////////////////////////////////////////////////////// // CDirTreeDoc diagnostics #ifdef _DEBUG void CDirTreeDoc::AssertValid() const { CDocument::AssertValid(); } void CDirTreeDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CDirTreeDoc commands